package com.crack.simpleapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

import java.util.Map;

/**
 * @version 1.0
 * @Description
 * @CreateTime 2023/3/8 21:29
 */

public class SignUtils {
    public static String getSign(Map<String, String> map, String secretKey){
        Digester digester = new Digester(DigestAlgorithm.MD5);
        String content = map.toString() + " - " + secretKey;
        return digester.digestHex(content);
    }
}
